cmake_minimum_required(VERSION 3.10)
project(yaml_test)

# 设置策略以使用 GLVND
if(POLICY CMP0072)
    cmake_policy(SET CMP0072 NEW)
endif()

set(CMAKE_CXX_STANDARD 17)

find_package(yaml-cpp REQUIRED)

include_directories(
        ${YAML_CPP_INCLUDE_DIR}
)

add_executable(yaml_main src/yaml_main.cpp)
target_link_libraries(yaml_main yaml-cpp)
